# -*- coding: utf-8 -*-
#
#
#
#for tab in tables
${tab} = Table('${tab}', metadata,
    #set len  = len(tab)
    #for ${item} in $len ####${tab.columns}
    #set name = item.name
    #set type = item.column_type
    Column('${name}', ${type}, nullable=False, default=datetime.now()),
    #end for
    Column('id', Integer, primary_key=True)
    )
#end for


#for tab in tables

class ${tab}Class(object):
    def __init__(self):
        pass
    """
    def __setattr__(self, atname, value):
        self.atname = value
    """
       
    """
    def __repr__(self):
        return 'Item(%s, %s)' % (repr(self.description), repr(self.price))
    """
#end for

"""
#for tab in tables
mapper(${tab}Class, ${tab})

#end for

"""